<template>
	<view class="content" style="background-color: #f5f5f5;">
		<u-navbar :safeAreaInsetTop="true" :placeholder='true' bgColor="#f5f5f5" height="160rpx">
			<view class="u-nav-slot" slot="left"
				style="display: flex;line-height: 80rpx; height: 80rpx; font-size: 40rpx;color: #333333;">
				<u-icon name="arrow-left" @click="$my.go('/pages/mess/index')"></u-icon>
				<text class="co3 fw5 fontS40" style="margin-left: 30rpx;">SEKIKON株式会社</text>
				<!-- <image src="../../static/images/mess/trash.png"
					style="width: 48rpx; height: 48rpx;margin-left: 10rpx;margin-top: 10rpx;" mode="">
					</image> -->
			</view>
			<view class="u-nav-slot" slot="right" style="font-size: 40rpx;color: #333333;line-height: 40rpx;">
				<button
					style="padding: 0;line-height: 48rpx;border-radius: 24rpx;margin-right: 32rpx; width: 100rpx;height: 44rpx;border: 2rpx solid #999999;font-size: 24rpx;float: left;">进店</button>
				<text>···</text>
			</view>
		</u-navbar>
		<view class="card" v-if="send==true">
			<view class="left">

			</view>
			<view class="right">
				<view class="box fontS28 fw4">
					商品详情
				</view>
				<view class="box">
					<view class="left" style="line-height: 44rpx;">
						<view
							style="font-size:24rpx ; width: 80rpx;height: 30rpx;color: #bdf;border-radius: 8rpx; border: 2rpx solid #bdf;text-align: center;line-height: 30rpx;">
							混批
						</view>
						<view class="homeRed fontS36">
							￥198
						</view>
					</view>
					<view class="right" @click="send=false">
						发送链接
					</view>
				</view>
			</view>

		</view>

		<view class="talk_right send" v-if="send==false">
			<view class="right">

			</view>
			<view class="left">
				<view class="card">
					<view class="left">

					</view>
					<view class="right">
						<view class="box fontS28 fw4">
							商品详情
						</view>
						<view class="box">
							<view class="left" style="line-height: 44rpx;">
								<view
									style="font-size:24rpx ; width: 80rpx;height: 30rpx;color: #bdf;border-radius: 8rpx; border: 2rpx solid #bdf;text-align: center;line-height: 30rpx;">
									混批
								</view>
								<view class="homeRed fontS36">
									￥198
								</view>
							</view>

						</view>
					</view>

				</view>

			</view>
			<view style="clear:both"></view>
		</view>

		<view class="talk_left">
			<view class="left">

			</view>
			<view class="right">
				您好~听到您的呼唤立马挥爪赶来，让您久等了有什么可以帮到您的呢~
			</view>
			<view style="clear:both"></view>
		</view>
		<view class="talk_right">
			<view class="right">

			</view>
			<view class="left">
				您好~听到您的呼唤立马挥爪赶来，让您久等了有什么可以帮到您的呢~
			</view>
			<view style="clear:both"></view>
		</view>

		<view class="bottom">
			<view class="box">
				<view class="left">
					<image src="../../static/images/mess/voice.png" alt="" style="width: 48rpx;height: 48rpx;">
				</view>
				<view class="center">
					<input type="text" name="" id="">
					<image src="../../static/images/mess/emo.png" mode="" style="width: 48rpx;height: 48rpx;"></image>
				</view>
				<view class="right">
					<image src="../../static/images/mess/bag.png" mode=""
						style="width: 48rpx;height: 48rpx;margin-right: 20rpx;"></image>
					<image @click="other_box= !other_box" src="../../static/images/mess/other.png" mode="" style="width: 48rpx;height: 48rpx;"></image>
				</view>
			</view>
			<view class="other_box" v-if="other_box">
				<view class="li">
					<image src="../../static/images/mess/camera.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
					
				</view>
				<view class="li">
					
					<image src="../../static/images/mess/photo.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
				</view>
				<view class="li">
					
					<image src="../../static/images/mess/place.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
				</view>
			</view>
		</view>

	</view>
</template>



<script>
	export default {
		data() {
			return {
				active: true,
				send: true,
				height: '288rpx',
				other_box:false
			}
		},
		methods: {
			toge() {
				console.log(this.active);
				this.active = !this.active
			},
			other_toge(){
				this.other_box = !this.other_box
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		position: relative;

		.card {
			border-radius: 20rpx;
			margin: 0 4%;
			background-color: white;
			// height: 208rpx;
			padding: 24rpx;
			display: flex;
			justify-content: space-between;

			>.left {
				width: 160rpx;
				height: 160rpx;
				background-color: #999;
				border-radius: 8rpx;
				margin-right: 20rpx;
			}

			>.right {
				// flex-grow: 1;
				width: 70%;
				max-width: 500rpx;

				.box {
					height: 50%;
					line-height: 50rpx;
					// border: 1px solid red;
					display: flex;
					justify-content: space-between;

					.right {
						width: 106rpx;
						height: 40rpx;
						margin-top: 40rpx;
						border: 1px solid $red;
						line-height: 40rpx;
						text-align: center;
						font-size: 22rpx;
						border-radius: 20rpx;
						color: $red;
					}
				}
			}
		}

		.send {
			>.left {
				background-color: white !important;

				>.card {

					>.left {
						width: 225rpx;
						height: 160rpx;
					}

					margin: 0;
					padding: 0;

					>.right {}
				}
			}
		}

		.talk_left {
			margin: 40rpx 4% 0;

			// display: flex;
			// justify-content: space-between;
			>.left {
				width: 80rpx;
				height: 80rpx;
				background-color: #999;
				border-radius: 40rpx;
				float: left;
				margin-right: 30rpx;
			}

			>.right {
				min-width: 40rpx;
				max-width: 64%;
				background-color: white;
				min-height: 80rpx;
				float: left;
				padding: 20rpx;
				border-radius: 16rpx;
			}
		}

		.talk_right {
			margin: 40rpx 4% 0;

			>.left {
				min-width: 40rpx;
				max-width: 64%;
				background-color: #ffe2e5;
				min-height: 80rpx;
				float: right;
				padding: 20rpx;
				border-radius: 16rpx;
			}

			>.right {
				width: 80rpx;
				height: 80rpx;
				background-color: #999;
				border-radius: 40rpx;
				float: right;
				margin-left: 30rpx;
			}


		}

		.bottom {
			position: fixed;
			bottom: 0;
			left: 0;
			width: 100%;

			// height: 100rpx;
			.box {
				display: flex;
				justify-content: space-between;
				width: 90%;
				background-color: white;

				// bottom: 288rpx;

				padding: 18rpx 5%;

				.center {
					width: 440rpx;
					border-radius: 24rpx;
					background-color: #f5f5f5;
					display: flex;
					justify-content: space-between;
					padding: 0 20rpx;

					input {
						text-align: left;
						flex-grow: 1;
						// line-height: 50rpx;
					}
				}
			}

			.other_box {
				// width: 100%;
				height: 288rpx;
				background-color: #f5f5f5;
				padding: 32rpx 80rpx 0;
				// display: flex;
				// justify-content: space-between;

				.li {
				
					// width: 112rpx;
					// height: 112rpx;
					box-sizing: border-box;
					float: left;
					height: 112rpx;
					width: 112rpx;
					margin-right: 48rpx;
					background-color: white;
					padding: 32rpx;
				}
			}
		}


	}
</style>
